package com.yanqu.road.server.cmd.group.rank;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.rank.RankProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.utils.YanQuMessageUtils;

@Cmd(code = CrossProtocol.C_GET_BEAUTY_RANK_DETAIL_INFO_RETURN, desc = "从区服获取美女榜单美女详细信息")
public class GetBeautyPatronsRankDetailInfoReturnCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        RankProto.GetBeautyRankDetailInfoCrossRespMsg crossRespMsg = RankProto.GetBeautyRankDetailInfoCrossRespMsg.parseFrom(packet.getBytes());
        YanQuMessage message = YanQuMessageUtils.buildMessage(Protocol.U_GET_BEAUTY_RANK_DETAIL_INFO, crossRespMsg.getRespMsg());
        MessageHelper.sendPacket(crossRespMsg.getFromServerId(), crossRespMsg.getFromUserId(), message);
    }

    @Override
    public void sendData() {

    }
}
